﻿using CsvHelper.Configuration.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAchive.Model.Excel.Export
{
    public class TwoReport
    {
        [Name("条码")]
        [Description("条码")]
        public string LotId { get; set; }


        [Ignore]
        public DateTime CreateTime { get; set; }
        [Name("记录时间")]
        [Description("记录时间")]
        public string CreateTimeStr
        {
            get
            {
                if (CreateTime == DateTime.MinValue)
                {
                    return "";
                }
                return CreateTime.ToString();
            }
            set { }
        }


        [Name("厂家")]
        [Description("厂家")]
        public string Company { get; set; }

        [Name("机器号")]
        [Description("机器号")]
        public string MachineId { get; set; }


        [Ignore]
        public string Operator { get; set; }

        [Ignore]
        public int Id { get; set; }
       
        [Ignore]
        public string VirtualLotId { get; set; }


        [Name("EL原图地址")]
        [Description("EL原图地址")]
        public string ElSourcePic { get; set; }


        [Name("EL打标图地址")]
        [Description("EL打标图地址")]
        public string ElMarkPic { get; set; }


        [Name("VI原图地址")]
        [Description("VI原图地址")]
        public string ViSourcePic { get; set; }


        [Name("VI打标图地址")]
        [Description("VI打标图地址")]
        public string ViMarkPic { get; set; }


        [Name("EL的AI检出缺陷")]
        [Description("EL的AI检出缺陷")]
        public string ElAiResult { get; set; }

        [Name("VI的AI检出缺陷")]
        [Description("VI的AI检出缺陷")]
        public string ViAiResult { get; set; }

        [Name("EL人工检出缺陷")]
        [Description("EL人工检出缺陷")]
        public string ElManualResult { get; set; }

        [Name("VI人工检出缺陷")]
        [Description("VI人工检出缺陷")]
        public string ViManualResult { get; set; }

        [Ignore]
        public DateTime RemoteResTime { get; set; }
        [Name("远程返回时间")]
        [Description("远程返回时间")]
        public string RemoteResTimeStr
        {
            get
            {
                if (RemoteResTime == DateTime.MinValue)
                {
                    return "";
                }
                return RemoteResTime.ToString();
            }
            set { }
        }

  
 
        [Name("远程返回结果")]
        [Description("远程返回结果")]
        public string RemoteReuslt { get; set; }


        [Name("EL上传结果")]
        [Description("EL上传结果")]
        public string ElMes { get; set; }


        [Name("VI上传结果")]
        [Description("VI上传结果")]
        public string ViMes { get; set; }

        [Name("是否上传结果")]
        [Description("是否上传结果")]
        public string IsMes { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Ignore]
        public string OperateType { get; set; }

        [Ignore]
        public DateTime PlcWriteTime { get; set; }

        [Name("EL的AI缺陷")]
        [Description("EL的AI缺陷")]
        public string ElDefectAi {  get; set; }

        [Name("VI的AI缺陷")]
        [Description("VI的AI缺陷")]
        public string ViDefectAi { get; set; }
    }
}
